<script setup lang="ts">
import clientLogtail from './index';

const log = new clientLogtail('日志项目', {
  userId: '123456',
  maxCount: 20,
  maxInterTime: 1000 * 60,
  needUpload: false,
  uploadUrl: '',
});
for (let i = 0; i < 20; i++) { 
  log.debug('初始化日志对象', '初始化日志对象', '初始化日志对象', { i });
}
log.info('初始化日志对象');
log.info('初始化日志对象');
log.info('初始化日志对象');
log.warn('[Butel-StartVideo]', '开始视频通话', 'StartVideo接口', { roomId: 123456, userId: 654321 });
</script>

<template>
  <div>
    <a
      href="https://vitejs.dev"
      target="_blank"
    >
      <img
        src="/vite.svg"
        class="logo"
        alt="Vite logo"
      />
    </a>
    <a
      href="https://vuejs.org/"
      target="_blank"
    >
      <img
        src="./assets/vue.svg"
        class="logo vue"
        alt="Vue logo"
      />
    </a>
  </div>
  <HelloWorld msg="Vite + Vue" />
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
